﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Qiang.Styles
{
    public class PointSymbol : FeatureSymbol, IPointSymbol
    {

        #region 初始化


        public PointSymbol()
        {
            _styles = new List<IPointStyle>();
            _styles.Add(new SimplePointStyle());
        }


        #endregion


        #region 属性

        IList<IPointStyle> _styles;

        public new IList<IPointStyle> Styles
        {
            get
            {
                return _styles;
            }
            set
            {
                _styles = value;
            }
        }

        #endregion


        #region 方法


        public void Draw(Graphics g, Point position)
        {
            foreach (IPointStyle style in _styles)
            {
                style.Draw(g, position);
            }
        }


        #endregion


    }
}
